wayland/surface: Fix toplevel present roundtrip condition
authorJonas Ådahl <jadahl@gmail.com>
Fri, 7 Aug 2020 07:02:03 +0000 (09:02 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 7 Aug 2020 07:06:21 +0000 (09:06 +0200)
We should round trip until we both have received callback and have
ensured we received the initial configuration.

gdk/wayland/gdksurface-wayland.c

index 2d6cafd18713c3c5ffd9bd4069e05a184963aba8..fccfa9a0033547147102efb6e255a965a1bee9b1 100644 (file)
@@ -4811,8 +4811,7 @@ gdk_wayland_toplevel_present (GdkToplevel       *toplevel,
                             &reconfigure_listener,
                             &done);
   while (is_realized_toplevel (surface) &&
-         !impl->initial_configure_received &&
-         !done)
+         (!impl->initial_configure_received || !done))
     wl_display_dispatch_queue (display_wayland->wl_display, impl->event_queue);
 
   if (needs_reconfigure &&